<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
 String contextPath = request.getContextPath();
int i = 0;
%>
<html>
<head>
<meta http-equiv=content-type content="text/html; charset=UTF-8">
<title>特優家团，让我们一起玩转地球</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" href="<%=contextPath%>/css/css.css" type="text/css"/>
<script type="text/javascript" src="<%=contextPath%>/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/javascript.js"></script>
<script>
	//var baseurl="http://www.wanletuan.com/";
</script>
<meta name="keyword" content="特優家" />
<meta name="description" content="特優家" />
</head>
<body>
<div id="doc">
    <jsp:include page="/template/top.jsp"></jsp:include>
    <!-- btw start -->
	<div id="bd" class="cf">
	  <div id="bdw" class="bdw">
	   <div id="deal-default">
		
		<!-- product lists -->
		
		<div id="content">
		<s:iterator value="todayProducts" status="prdtIndex">
		    <s:hidden name="remainTime"></s:hidden>
			<div id='deal-share'>
				<div class='deal-share-top'>
					<div class="deal-share-links">
					<h4>分享到：</h4>
					<ul class="cf">
						<li><a class="im" href="javascript:void(0);"
							onclick='shareQQ("deal-share-im-c2");' id="deal-share-im1">MSN/QQ</a></li>
						<li><a class="kaixin"
							href="http://www.kaixin001.com/repaste/share.php?rurl=http://www.wanletuan.com/deals/deal482.html?r=i0&rtitle=%e4%bb%85%e5%94%ae388%e5%85%83%ef%bc%81%e5%8e%9f%e4%bb%b7675%e5%85%83%e7%9a%84%e3%80%90%e6%9c%88%e5%ad%90%e8%b0%83%e8%a1%a5%e4%ba%8c%e5%8d%81%e5%85%ab%e6%96%b9%e3%80%91%e9%a2%97%e7%b2%92%e7%b2%be%e8%a3%85%ef%bc%81%e5%a5%b3%e6%80%a7%e4%ba%a7%e5%90%8e%e5%85%a8%e7%a8%8b%e8%b0%83%e8%a1%a5%ef%bc%81%e4%b8%80%e6%9c%88%e7%9a%84%e5%91%b5%e6%8a%a4%ef%bc%8c%e4%b8%80%e7%94%9f%e7%9a%84%e5%81%a5%e5%ba%b7%ef%bc%81&rcontent=%e6%ba%90%e4%ba%8e%e4%bc%a0%e7%bb%9f%e7%a7%91%e5%ad%a6%e5%88%9b%e6%96%b0%ef%bc%9b%0d%0a%e4%ba%a7%e5%90%8e%e8%bf%9b%e8%a1%a5%e8%b0%83%e7%90%86%e4%bd%b3%e5%93%81%ef%bc%9b%0d%0a%e5%91%b5%e6%8a%a4%e4%ba%a7%e5%90%8e%e5%a5%b3%e6%80%a7%e5%81%a5%e5%ba%b7%ef%bc%9b%0d%0a%e8%a1%a5%e5%85%bb%e9%80%81%e7%a4%bc%e4%ba%8c%e8%80%85%e7%9a%86%e5%ae%9c%e3%80%82"
							target="_blank">开心</a></li>
						<li><a class="renren"
							href="http://share.renren.com/share/buttonshare.do?link=http://www.wanletuan.com/deals/deal482.html?r=i0&title=%e4%bb%85%e5%94%ae388%e5%85%83%ef%bc%81%e5%8e%9f%e4%bb%b7675%e5%85%83%e7%9a%84%e3%80%90%e6%9c%88%e5%ad%90%e8%b0%83%e8%a1%a5%e4%ba%8c%e5%8d%81%e5%85%ab%e6%96%b9%e3%80%91%e9%a2%97%e7%b2%92%e7%b2%be%e8%a3%85%ef%bc%81%e5%a5%b3%e6%80%a7%e4%ba%a7%e5%90%8e%e5%85%a8%e7%a8%8b%e8%b0%83%e8%a1%a5%ef%bc%81%e4%b8%80%e6%9c%88%e7%9a%84%e5%91%b5%e6%8a%a4%ef%bc%8c%e4%b8%80%e7%94%9f%e7%9a%84%e5%81%a5%e5%ba%b7%ef%bc%81"
							target="_blank">人人</a></li>
						<li><a class="douban"
							href="http://www.douban.com/recommend/?url=http://www.wanletuan.com/deals/deal482.html?r=i0&title=%e4%bb%85%e5%94%ae388%e5%85%83%ef%bc%81%e5%8e%9f%e4%bb%b7675%e5%85%83%e7%9a%84%e3%80%90%e6%9c%88%e5%ad%90%e8%b0%83%e8%a1%a5%e4%ba%8c%e5%8d%81%e5%85%ab%e6%96%b9%e3%80%91%e9%a2%97%e7%b2%92%e7%b2%be%e8%a3%85%ef%bc%81%e5%a5%b3%e6%80%a7%e4%ba%a7%e5%90%8e%e5%85%a8%e7%a8%8b%e8%b0%83%e8%a1%a5%ef%bc%81%e4%b8%80%e6%9c%88%e7%9a%84%e5%91%b5%e6%8a%a4%ef%bc%8c%e4%b8%80%e7%94%9f%e7%9a%84%e5%81%a5%e5%ba%b7%ef%bc%81&comment=%e6%ba%90%e4%ba%8e%e4%bc%a0%e7%bb%9f%e7%a7%91%e5%ad%a6%e5%88%9b%e6%96%b0%ef%bc%9b%0d%0a%e4%ba%a7%e5%90%8e%e8%bf%9b%e8%a1%a5%e8%b0%83%e7%90%86%e4%bd%b3%e5%93%81%ef%bc%9b%0d%0a%e5%91%b5%e6%8a%a4%e4%ba%a7%e5%90%8e%e5%a5%b3%e6%80%a7%e5%81%a5%e5%ba%b7%ef%bc%9b%0d%0a%e8%a1%a5%e5%85%bb%e9%80%81%e7%a4%bc%e4%ba%8c%e8%80%85%e7%9a%86%e5%ae%9c%e3%80%82"
							target="_blank">豆瓣</a></li>
						<li><a class="sina"
							href="http://v.t.sina.com.cn/share/share.php?appkey=&url=http://www.wanletuan.com/deals/deal482.html?r=i0&title=%e4%bb%85%e5%94%ae388%e5%85%83%ef%bc%81%e5%8e%9f%e4%bb%b7675%e5%85%83%e7%9a%84%e3%80%90%e6%9c%88%e5%ad%90%e8%b0%83%e8%a1%a5%e4%ba%8c%e5%8d%81%e5%85%ab%e6%96%b9%e3%80%91%e9%a2%97%e7%b2%92%e7%b2%be%e8%a3%85%ef%bc%81%e5%a5%b3%e6%80%a7%e4%ba%a7%e5%90%8e%e5%85%a8%e7%a8%8b%e8%b0%83%e8%a1%a5%ef%bc%81%e4%b8%80%e6%9c%88%e7%9a%84%e5%91%b5%e6%8a%a4%ef%bc%8c%e4%b8%80%e7%94%9f%e7%9a%84%e5%81%a5%e5%ba%b7%ef%bc%81"
							target="_blank">新浪微博</a></li>
						<li><a class="email"
							href="mailto:?subject=%d3%d0%d0%cb%c8%a4%c3%b4%a3%ba%bd%f6%ca%db388%d4%aa%a3%a1%d4%ad%bc%db675%d4%aa%b5%c4%a1%be%d4%c2%d7%d3%b5%f7%b2%b9%b6%fe%ca%ae%b0%cb%b7%bd%a1%bf%bf%c5%c1%a3%be%ab%d7%b0%a3%a1%c5%ae%d0%d4%b2%fa%ba%f3%c8%ab%b3%cc%b5%f7%b2%b9%a3%a1%d2%bb%d4%c2%b5%c4%ba%c7%bb%a4%a3%ac%d2%bb%c9%fa%b5%c4%bd%a1%bf%b5%a3%a1&body={%b7%a2%cf%d6%d2%bb%ba%c3%cd%f8%d5%be--%cd%e6%c0%d6%cd%c5%a3%ac%cb%fb%c3%c7%c3%bf%cc%ec%d7%e9%d6%af%d2%bb%b4%ce%cd%c5%b9%ba%a3%ac%b3%ac%d6%b5%a3%a1%0d%0a%0d%0a%bd%f1%cc%ec%b5%c4%cd%c5%b9%ba%ca%c7%a3%ba%bd%f6%ca%db388%d4%aa%a3%a1%d4%ad%bc%db675%d4%aa%b5%c4%a1%be%d4%c2%d7%d3%b5%f7%b2%b9%b6%fe%ca%ae%b0%cb%b7%bd%a1%bf%bf%c5%c1%a3%be%ab%d7%b0%a3%a1%c5%ae%d0%d4%b2%fa%ba%f3%c8%ab%b3%cc%b5%f7%b2%b9%a3%a1%d2%bb%d4%c2%b5%c4%ba%c7%bb%a4%a3%ac%d2%bb%c9%fa%b5%c4%bd%a1%bf%b5%a3%a1%0d%0a%ce%d2%cf%eb%c4%fa%bb%e1%b8%d0%d0%cb%c8%a4%b5%c4%a3%bahttp%3a%2f%2fwww.wanletuan.com%2fdeals%2fdeal482.html%3fr%3di0"
							id="deal-buy-mailto">邮件</a></li>
					</ul>
					</div>
				</div>
				<div class='deal-share-fix'></div>
				<div style='display: none;' class='deal-share-im-c'
					id='deal-share-im-c2'>
					<div class='deal-share-im-b'>
					<h3>把下面的内容通过 MSN 或 QQ 发送给好友：</h3>
					<p><input id='share-copy-text2' type='text'
						value='http://www.wanletuan.com/deals/deal482.html?r=i0' size='30'
						class='f-input' /> <input id='share-copy-button2'
						onclick='copyShareUrl("share-copy-text2")' type='button' value='复制'
						class='formbutton' /></p>
					</div>
				</div>
			</div>
			<div id="deal-intro" class="cf" style='padding-left: 10px;'>
				<h1>今日团购<s:property value="#prdtIndex.count"/>：<a class="deal-today-link"
					href="<%=contextPath%>/productView.action?productId=${productId}"><s:property value="title"/></a></h1>
				<div class="main">
				<div class="deal-buy">
				<div class="deal-price-tag"></div>
				<p class="deal-price"><strong><font
					style='font-size: 29px;'>￥<s:property value="realPrice"/></font></strong> <span id="buylist_now"><a
					href="<%=contextPath%>/productBuy.action?productId=${productId}"><img
					src="<%=contextPath%>/imgs/button-deal-buy.gif" /></a></span>
				</p>
				</div>
				<table class="deal-discount">
					<tr>
						<th>原价</th>
						<th>折扣</th>
						<th>节省</th>
					</tr>
					<tr>
						<td>￥<s:property value="originalPrice"/></td>
				        <td><s:property value="discount"/>折</td>
				        <td>￥<s:property value="save"/></td>
					</tr>
				</table>
				<table width="100%">
					<Tr>
						<Td id="showlisttime">
						<div class='deal-box deal-timeleft deal-on' id='deal-timeleft'>
						<h3>剩余时间</h3>
						<div class='limitdate'>
						<ul id='counter<%=i++%>'>
						</ul>
						</div>
						</div>
						</Td>
					</Tr>
					<tr>
						<td id="showzhuangtai">
						<div class="deal-box deal-status deal-status-open" id="deal-status">
						<p class="deal-buy-tip-top"><strong><s:property value="manualPurchaseNumber"/></strong> 人已购买</p>
						<p class="deal-buy-tip-notice">数量有限，下单要快哟</p>
						<p class="deal-buy-on">团购已成功，<br />
						可继续购买…</p>
						<!--<p class="deal-buy-tip-btm">11点32分达到最低团购人数：<strong>10</strong> 人</p>-->
						</div>
						</td>
					</tr>
				</table>
				</div>
				<div class="side">
					<div class="deal-buy-cover-img"><a class="deal-today-link"
						href="<%=contextPath%>/productView.action?productId=${productId}">
						<img width="440px" height="250px" src="${mainPic}"></a>
					</div>
					<ul class="deal-detail-t cf">
						<li class="col first">
						<h2>提示</h2>
						<ul>
							<s:iterator value="reminders">
                              <li><s:property/>；</li>
                            </s:iterator>
						</ul>
						</li>
						<li class="col">
						<h2>亮点</h2>
						<ul class="highlight">
							<s:iterator value="highlightsv">
                               <li><s:property/>；</li>
                            </s:iterator>
						</ul>
						</li>
					</ul>
				</div>
			</div>
			<div style='height: 25px;'></div>
		</s:iterator>
		</div>
		
		<!-- product lists end -->	
		<div id="sidebar">
			<div class="sbox side-invite-tip">
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="tip">
			<h2>邀请有奖</h2>
			<p class="text">每邀请一位好友首次购买，您将获<strong><span class="money">¥</span>5</strong>元返利</p>
			<p class="link"><a
				href="http://www.wanletuan.com/account/referrals/">» 点击获取您的专用邀请链接</a></p>
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			
			<div class="clear"></div>
						
			<div class="sbox side-business">
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="tip">
			<h2>玩乐团公告</h2>
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><strong>【到期提醒】</strong></p>
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt">&nbsp;<span
				style="font-size: 14px"><span style="color: #b22222"><font
				face="Arial"><strong>焱春拌饭馆</strong><span style="color: #000">11年4月22日到期，0311-80691280。</span></font></span></span></p>
			<hr />
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font
				color="#000000"><span style="font-size: 14px"><span
				style="color: #b22222"><span style="color: #b22222"><span
				style="font-size: 14px">温馨提示：购买后请在玩乐证的有效期内及时消费，特别注意消费截止日期，谨防过期作废！</span></span></span></span></font></p>
			<hr />
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span
				style="font-size: 16px"><span style="color: #000"><strong><span
				style="font-size: 14px"><strong><span
				style="color: #f00">欢迎加入玩乐团团友群，和达人们分享团购生活！</span></strong></span></strong></span></span></p>
			<p><span style="font-size: 14px"><span style="color: #000"><strong><strong><strong><strong><span
				style="color: #000"><strong><strong><strong><strong>玩乐团团友群：112174067</strong></strong></strong></strong></span></strong></strong></strong></strong></span></span></p>
			<p><span style="font-size: 14px"><span style="color: #000"><strong><strong><strong><strong><span
				style="color: #000"><strong><strong><strong><strong>客服QQ：910643872</strong></strong></strong></strong></span></strong></strong></strong></strong></span></span></p>
			
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			<div class="clear"></div>
			
			<div class="deal-consult sbox">
			<div class="sbox-bubble"></div>
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="deal-consult-tip">
			<h2>玩乐团答疑</h2>
			<p class="nav"><a href="http://www.wanletuan.com/message/"
				target="_blank">查看全部(367)</a> | <a
				href="http://www.wanletuan.com/message/#consult-form-head"
				target="_blank">我要提问</a></p>
			<ul class="list">
				<li><a href="http://www.wanletuan.com/message/#consult-entry-528">转让2张世纪公园弹跳床或空中漫步的票！12号到期！在家专门带孩子的妈妈可以带孩子去玩！需要的电话联系15081165349</a></li>
				<li><a href="http://www.wanletuan.com/message/#consult-entry-517">转：【3小时欢唱不限时段
				6瓶珠江啤酒 2份小吃 1份中果盘】！到【晶木练歌广场平安店】补交65元，即可享受原价300元的欢唱套餐！唱响欢乐时刻！
				QQ：13732235 口令：晶木KTV</a></li>
				<li><a href="http://www.wanletuan.com/message/#consult-entry-515">玩乐证怎样办，是必须买过东西吗</a></li>
			</ul>
			<div class="custom-service">
			<p class="im"><a id="service-msn-help" target="_blank"
				href="msnim:chat?contact=wanletuankefu@qq.com"><img
				src="http://www.wanletuan.com/template/default/images/button-custom-msn.gif" /></a>
			<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=" target="_blank"
				onClick="checkQQ()"><img
				SRC="http://www.wanletuan.com/template/default/images/button-custom-qq.gif"
				alt=""></a></p>
			<p class="tel">客服电话：如有售后问题，请加QQ1489380311</p>
			<p class="time">周一至周六 上午9:00-12:00 下午14:00-18:00</p>
			</div>
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			<div class="sbox side-vote-tip">
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="tip">
			<h2>小调查</h2>
			<div class="text">
			<p class="mark"><a href="http://www.wanletuan.com/vote/"
				target="_blank">您最想团购的是什么?</a></p>
			<p>请达人们告诉玩乐团，让玩乐团更好的为您服务！</p>
			</div>
			<div class="link"><a href="http://www.wanletuan.com/vote/"
				target="_blank"><img
				src="http://www.wanletuan.com/template/default/images/button-deal-vote.gif" /></a></div>
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			
			
			<!--商务合作-->
			<div class="sbox side-business-tip" style="margin-top: 12px;">
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="tip">
			<h2>商务合作</h2>
			<p class="text">希望在玩乐团组织团购么？请<a
				href="http://www.wanletuan.com/feedback/seller/">提交团购信息</a></p>
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			
			<div class="sbox side-huoban">
			<div class="sbox-top"></div>
			<div class="sbox-content">
			<div class="tip">
			<h2>合作伙伴</h2>
			<div class="text"><a href='http://www.wanletuan.com/'
				target=_blank title='五羊皇冠'><img
				src='/UploadFile/link/2011/1-8/2011182112356483321.jpg' border='0'
				width='100' height='45'></a><a href='http://www.henhi.cn/'
				target=_blank title='联邦·黄金海岸娱乐公馆'><img
				src='/UploadFile/link/2010/10-15/201010151719338947970.jpg' border='0'
				width='100' height='45'></a></div>
			</div>
			</div>
			<div class="sbox-bottom"></div>
			</div>
			
			</div>
		</div>
	  </div>
	</div>
 <!-- bdw end -->
	<jsp:include page="/template/frendlink.jsp"></jsp:include>
	<jsp:include page="/template/bottom.jsp"></jsp:include>

<script
	src="http://s16.cnzz.com/stat.php?id=2373670&web_id=2373670&show=pic" type="text/javascript"></script>
</div>
<!-- doc end -->
<script type="text/javascript">
//declar a arry to record products' remaintime
var prdtRemainTime = new Array($("input[name=remainTime]").length);
$("input[name=remainTime]").each(function(index,element){
	
			//alert(parseInt($(element).val()));
			prdtRemainTime[index]=parseInt($(element).val());
		}
);
var interValObj = window.setInterval(setRemainTime, 1000); 
var mintime=0;minminute=0;

function setRemainTime()
{
	//record expired product count
	var expCount = 0;
	$.each(prdtRemainTime,function(key,val){
		sysSecond = val;
		if (sysSecond > 0)
		{
			sysSecond -= 1;
			var second = Math.floor(sysSecond % 60);              // 计算秒     
			var minite = Math.floor((sysSecond / 60) % 60);       //计算分
			var hour = Math.floor((sysSecond / 3600) % 24);       //计算小时
			var day = Math.floor((sysSecond / 3600) / 24);        //计算天
			var timeHtml = "<li><span>"+hour+"</span>小时</li><li><span>"+minite+"</span>分</li>";
			if(day > 0)
			{
				timeHtml ="<li><span>"+day+"</span>天</li>" + timeHtml;
				minminute +=1;
				if(minminute==60){
					minminute=0;
					//setzhuangtaibuy(440);
				}
			}
			else
			{
				timeHtml+="<li><span>"+second+"</span>秒</li>";
				mintime +=1;
				if(mintime==10){
					mintime=0;
					//setzhuangtaibuy(440);
				}
			}
			try
			{
				$("#counter"+key).html(timeHtml);
			}
			catch(e){}
		}else
		{
			expCount++;
		}
		//if all the products are expired, clear Interval
		if(expCount == $("input[name=remainTime]").length){
			disablezhuang();
			window.clearInterval(interValObj);
		}
		
	});
	
}

function disablezhuang(){
	//var status = '<div class='deal-box deal-status deal-status-istipped' id="deal-status"><div class="deal-buy-expired-succ"></div><p class="deal-buy-tip-total" style="display:">共有 <strong>'+$("#")'<s:property value="manualPurchaseNumber"/>'+'</strong> 人购买</p></div>';
	$("#showzhuangtai").html();
}

function checkQQ(){
	var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=';
	var oldscript=document.getElementById('testJs');
	var newscript=document.createElement('script');
	newscript.setAttribute('type','text/javascript'); 
	newscript.setAttribute('id', 'testJs');
	newscript.setAttribute('src',tempSrc);
	if(oldscript == null){
		document.body.appendChild(newscript);
	}else{
		oldscript.parentNode.replaceChild(newscript, oldscript);
	}
}
</script>
</body>
</html>
